package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName as_topo
 */
@TableName(value ="as_topo")
@Data
public class AsTopo implements Serializable {
    /**
     * 
     */
    private Integer srcAsn;

    /**
     * 
     */
    private String srcOrg;

    /**
     * 
     */
    private Double srcLatitude;

    /**
     * 
     */
    private Double srcLongitude;

    /**
     * 
     */
    private Integer dscAsn;

    /**
     * 
     */
    private String dscOrg;

    /**
     * 
     */
    private Double dscLatitude;

    /**
     * 
     */
    private Double dscLongitude;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AsTopo other = (AsTopo) that;
        return (this.getSrcAsn() == null ? other.getSrcAsn() == null : this.getSrcAsn().equals(other.getSrcAsn()))
            && (this.getSrcOrg() == null ? other.getSrcOrg() == null : this.getSrcOrg().equals(other.getSrcOrg()))
            && (this.getSrcLatitude() == null ? other.getSrcLatitude() == null : this.getSrcLatitude().equals(other.getSrcLatitude()))
            && (this.getSrcLongitude() == null ? other.getSrcLongitude() == null : this.getSrcLongitude().equals(other.getSrcLongitude()))
            && (this.getDscAsn() == null ? other.getDscAsn() == null : this.getDscAsn().equals(other.getDscAsn()))
            && (this.getDscOrg() == null ? other.getDscOrg() == null : this.getDscOrg().equals(other.getDscOrg()))
            && (this.getDscLatitude() == null ? other.getDscLatitude() == null : this.getDscLatitude().equals(other.getDscLatitude()))
            && (this.getDscLongitude() == null ? other.getDscLongitude() == null : this.getDscLongitude().equals(other.getDscLongitude()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSrcAsn() == null) ? 0 : getSrcAsn().hashCode());
        result = prime * result + ((getSrcOrg() == null) ? 0 : getSrcOrg().hashCode());
        result = prime * result + ((getSrcLatitude() == null) ? 0 : getSrcLatitude().hashCode());
        result = prime * result + ((getSrcLongitude() == null) ? 0 : getSrcLongitude().hashCode());
        result = prime * result + ((getDscAsn() == null) ? 0 : getDscAsn().hashCode());
        result = prime * result + ((getDscOrg() == null) ? 0 : getDscOrg().hashCode());
        result = prime * result + ((getDscLatitude() == null) ? 0 : getDscLatitude().hashCode());
        result = prime * result + ((getDscLongitude() == null) ? 0 : getDscLongitude().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", srcAsn=").append(srcAsn);
        sb.append(", srcOrg=").append(srcOrg);
        sb.append(", srcLatitude=").append(srcLatitude);
        sb.append(", srcLongitude=").append(srcLongitude);
        sb.append(", dscAsn=").append(dscAsn);
        sb.append(", dscOrg=").append(dscOrg);
        sb.append(", dscLatitude=").append(dscLatitude);
        sb.append(", dscLongitude=").append(dscLongitude);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}